package com.le.buddha.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.le.buddha.mapper.SysConfigMapper;
import com.le.buddha.mobile.SysConfig;
import com.le.buddha.service.ISysConfigService;
import org.springframework.stereotype.Service;

@Service
public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig> implements ISysConfigService {
    @Override
    public String queryValueByCode(String code) {
        return this.lambdaQuery().eq(SysConfig::getCode,code).one().getValue();
    }
}
